import request from '@/utils/request'

// 查询党建列表
export function listContent(query) {
  return request({
    url: '/cms/park/content/list',
    method: 'get',
    params: query
  })
}

// 查询党建详细
export function getContent(id) {
  return request({
    url: '/cms/park/content/' + id,
    method: 'get'
  })
}

// 新增党建
export function addContent(data) {
  return request({
    url: '/cms/park/content',
    method: 'post',
    data: data
  })
}

// 修改党建
export function updateContent(data) {
  return request({
    url: '/cms/park/content',
    method: 'put',
    data: data
  })
}

// 删除党建
export function delContent(id) {
  return request({
    url: '/cms/park/content/' + id,
    method: 'delete'
  })
}

// 用户状态修改
export function changMarkTable(id, markTable) {
  const data = {
    id,
    markTable
  }
  return request({
    url: '/cms/park/content/changMarktable',
    method: 'put',
    data: data
  })
}

